package com.dji.sample.wayline.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dji.sample.common.util.kmlModel.TravelRecordRequest;
import com.dji.sample.wayline.model.entity.WaylineFilePositionEntity;
import com.dji.sample.wayline.model.entity.WaylineInfoEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author yjt
 * @date 2023-02-01
 * @description:
 */
@Data
public class WaylineInfoDto  implements Serializable {

    private static final long serialVersionUID = -8470355608680084309L;

    private Integer id;

    private String name;
    /**
     * MD5
     */
    private String sign;

    private String objectKey;

    private String userName;

    private Long createTime;

    /**
     * required, can't modify.
     */
    private Long updateTime;

    private Long orgId;

    private String orgCode;

    private String deviceNos;

    private String takeOffSecurityHeight;

    private String ellipsoidHeight;

    private String speed;

    private Integer status;

    private String sysRmk;

    private Date startTime;

    private Date endTime;

    private String uniKey;

    public List<TravelRecordRequest> originCoordinate;

    public String coordinate;

    private String[] deviceNo;

    private List<WaylineFilePositionEntity> positions;

    private Integer type;


    private String typeName;

    private UploadKmlDto.PayloadParam payloadParam;

    private UploadKmlDto.DroneInfo droneInfo;

    private UploadKmlDto.PayloadInfo payloadInfo;

    private List<TravelRecordRequest> positionDetails = new ArrayList<>(8);

    public void addPositionDetail(TravelRecordRequest travelRecordRequest){
        positionDetails.add(travelRecordRequest);
    }
}
